#ifndef WF_ZOOMPAN_H
#define WF_ZOOMPAN_H

#include "pf_actioninterface.h"
#include "gui_export.h"

/**
 * This action class can handle user events to zoom in a window.
 *
 */
class GUI_EXPORT WF_ZoomPan : public PF_ActionInterface {
	Q_OBJECT
public:
    WF_ZoomPan(PF_Container& container,
                     PF_GraphicView& graphicView);
    ~WF_ZoomPan() {}

	static QAction* createGUIAction(LX_Define::ActionType /*type*/, QObject* /*parent*/);

    virtual void init(int status=0);
    virtual void trigger();
    virtual void mouseMoveEvent(PF_MouseEvent* e);
    virtual void mousePressEvent(PF_MouseEvent* e);
    virtual void mouseReleaseEvent(PF_MouseEvent* e);
    virtual void updateMouseCursor();

protected:
    //PF_Vector v1;
    //PF_Vector v2;
	int x1;
	int y1;
	int x2;
	int y2;
};

#endif
